<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>CONTENTS</title>
<%include file="_head.html"/>

<!--
<script src="/_paneo/common/cle/jquery.cleditor.js"></script>
-->
<script src='/_paneo/common/js/jquery.autosize.js'></script>
<link rel="stylesheet" href="/_paneo/common/redactor/redactor.css" />
<script src="/_paneo/common/redactor/redactor.js"></script>
<script type="text/javascript">
//CLE
/*
$(document).ready(function() {
$.cleditor.defaultOptions.width = '95%';
$.cleditor.defaultOptions.height = '300px';
$.cleditor.defaultOptions.controls = "bold italic underline strikethrough color | outdent " +
                        "indent | alignleft center alignright justify | undo redo | image link unlink | source";
//$("textarea").cleditor({width:"100%", height:"100%"})[0].focus();
$(".cle").cleditor()[0].focus();
});
*/
$(document).ready(
function()
{

$('.wysi').autosize();
//$('.wysi').redactor({autoresize: true });
}
);
</script>

</head>
<body>

<div class="navbar navbar-fixed-top">

<%include file="_header.html" />

</div>

<div class="container-fluid">

<div class="row-fluid">

<div class="span2">
<!--Sidebar content-->
    <%include file="_sidebar.html" />
</div>
<div class="span10">
    <div id="content">
        %if id:
        <%include file="_tabmenu.html" />
        %endif

        <h1>PANEO CONTENTS 
        %if mode != 'view':
        <a href="/paneo/contents/" class="btn" style="margin-left:30px;">一覧に戻る</a>
        %endif
        </h1>
        %if mode == 'view' :
        <%include file="_page_list.html" args="edit='contents'"/>
        %endif:

        <!-- form -->
        %if id :

        <form method="POST">
        <fieldset>
        <legend>[ ${id} ] CONTENT 編集
        %if scfg.get('PAGEMAKE') == 'CMS':
        <a href="/${id}.html" target="_blank" class="icon-share-alt">
        <span class="label">
        ページ表示
        </span>
        </a>
        %else:
        <a href="/${id}.html" target="_blank" class="icon-share-alt">
        <span class="label">
        ページ表示
        </span>
        </a>
        %endif
        </legend>

        <%include file="_contents.html"/>
        <div class="form-actions">
            <button class="btn btn-primary" type="submit">更新する</button>
            <button class="btn" type="reset" style="margin-left:20px;">Cancel</button>
        </div>

        </fieldset>
        </form>
        %endif
    </div><!--/div#content row span-->
</div>

</div><!--/row-->

</div><!--/container-fluid"-->

<hr>

<%include file="_footer.html" />

</div><!--/.fluid-container-->

</body>
</html>


